import ajax from "./ajax";

let baseUrl = "/api"
export const reqAddress = geohash => ajax(baseUrl + '/position/' + geohash)
export const reqCategorys = () => ajax(baseUrl + '/index_category')
export const reqShops = data => ajax(baseUrl + "/shops", data)
export const reqSendCode = data => ajax(baseUrl + "/sendcode", data)
export const reqSmsLogin = data => ajax(baseUrl + "/login_sms", data, "post")
export const reqPwdLogin = data => ajax(baseUrl + "/login_pwd", data, "post")
export const reqUserInfo = () => ajax(baseUrl + "/userinfo")
export const reqLogout = () => ajax(baseUrl + '/logout')

export const reqShopGoods=()=>ajax("/goods")
export const reqShopRatings=()=>ajax("/ratings")
export const reqShopInfo=()=>ajax("/info")
